/**
 * Created by Administrator on 2017/7/7 0007.
 */
define(["jquery", "template","bbcare","scprit/department/view/template/queueManagement/createQueue-tpl.js"], function ($,template,$bb, tpl) {
    var question = {};
    var pageTable=function(data){
        return template("hdfpInit-tpl", data);
    }
    var inTable = function (data) {
        return template("hdfplist-tpl", data);
    }
    var inTable2 = function (data) {
        return template("doctorRole-tpl", data);
    }
    question.pageInit = function (options) {
        $("body").append(tpl.hdfpInit());
        var html = pageTable(options.data);
        $(options.id).html(html);
    }
    question.queuelist = function (options) {
        $("body").append(tpl.init());
        var html = inTable(options.data);
        $(options.id).html(html);
    }
    question.doctorRoleList = function (options) {
        $("body").append(tpl.init2());
        var html = inTable2(options);
        $(options.id).html(html);
    }
    question.dataDeal=function(data,data2){
        for(var i=0;i<data.data.length;i++){
            data.data[i].roles=data2;
        }
    }
    return question;
});
